##
##  $Header: /pub/cvsroot/mydns/doc/texi/Makefile.am,v 1.16 2002/11/15 10:02:55 bboy Exp $
##

SUBDIRS			=	en es
EXTRA_DIST		=	langdir makeinfo

RUN				=	$(SHELL) ../../missing --run
RUN2				=	$(SHELL) ../../../missing --run
TEXIVARS			=	variables.texi

## Create a .texi file including the variables
variables.texi:
	@if `test -f $(TEXIVARS)`; then rm -f $(TEXIVARS); fi
	@echo "@set MYDNSCONF @MYDNS_CONF@" >> $(TEXIVARS)
	@echo "@set PKGDATE @PACKAGE_DATE@" >> $(TEXIVARS)
	@echo "@set PKGNAME @PACKAGE_NAME@" >> $(TEXIVARS)
	@echo "@set PKGVERSION @PACKAGE_VERSION@" >> $(TEXIVARS)
	@echo "@set PKGSTRING @PACKAGE_STRING@" >> $(TEXIVARS)
	@echo "@set PKGAUTHOR @PACKAGE_AUTHOR@" >> $(TEXIVARS)
	@echo "@set PKGBUGREPORT @PACKAGE_BUGREPORT@" >> $(TEXIVARS)
	@echo "@set PKGHOMEPAGE @PACKAGE_HOMEPAGE@" >> $(TEXIVARS)
	@echo "@set PKGCOPYRIGHT @PACKAGE_COPYRIGHT@" >> $(TEXIVARS)
	@echo "*** Created $@"

info: $(TEXIVARS)
	cd `./langdir` && $(MAKE) install-info

html: $(TEXIVARS)
	@cd `./langdir` && $(MAKE) install-html

pdf: $(TEXIVARS)
	@cd `./langdir` && $(MAKE) install-pdf

ps: $(TEXIVARS)
	@cd `./langdir` && $(MAKE) install-ps

all:

clean:
	rm -f $(TEXIVARS) mydns.dvi mydns.info mydns.log mydns_letter.ps mydns_a4.ps mydns.pdf
	rm -rf html

info-install: info
	@if test -f mydns.info; then \
	  $(INSTALL) -d $(DESTDIR)$(infodir); \
	  $(INSTALL_DATA) mydns.info $(DESTDIR)$(infodir)/mydns.info; \
	  echo "*** Installed: $(DESTDIR)$(infodir)/mydns.info"; \
	fi

install-info-am:

install: all info-install

## vi:set ts=3:
